Fix mode generated in `maybe_lib`
authorAlex Crichton <alex@alexcrichton.com>
Fri, 11 May 2018 15:04:10 +0000 (08:04 -0700)
committerAlex Crichton <alex@alexcrichton.com>
Sat, 12 May 2018 19:19:01 +0000 (12:19 -0700)
commitcbf6c57aa1ec2c793779fa2abd720f1817a3c1bc
tree7b8903d9fe44b89dbda3d7f75b408ee7d65db809
parent3c5af1a60a5899f297e9ed8b64b81fcc9302d81f
Fix mode generated in `maybe_lib`

The new `mode` for the library dependency is dependent on the library target
rather than the target which is the reason for the dependency on the library!

Closes rust-lang/rust#50640
src/cargo/core/compiler/context/unit_dependencies.rs
tests/testsuite/check.rs